<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>{$meta_title}</title>
    
    <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <style type="text/css">
        
        body, ul, p {
            margin: 0;
            padding: 0;
        }
        
        body {
            background: #f1f1f1;
            font-size: 16px;
            font-family: "微软雅黑", "Microsoft Yahei", "宋体", Tahoma, 'Simsun', Arial, Helvetica, sans-serif;
            -webkit-text-size-adjust: none;
            width: 100%;
            margin: 0 auto;
            color: #333;
        }
        
        #website_list {
            margin: 0 10px;
        }
        
        ul li {
            list-style: none;
            background: #fff;
            margin-top: 10px;
        }
        
        .foot li {
            position: relative;
            height: 110px;
            border: 1px solid #e1e1e1;
            border-radius: 5px;
        }
        
        .leftImg {
            width: 75px;
            height: 75px;
            float: left;
            margin: 15px 0;
            overflow: hidden;
            padding-left: 10px;
        }
        
        .leftImg img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
        }
        
        .omit {
            display: -webkit-box;
            -webkit-line-clamp: 1;
            display: inline-block;
            line-height: 1.4em;
            font-size: 13px;
            color: #666;
            margin-top: 5px;
            margin-right: 15%;
        }
        
        .foot li:after {
            top: 82px;
            right: 5%;
            width: 19px;
            height: 17px;
            content: '';
            position: absolute;
            background: url("/wap/images/psInformation/transform.png") no-repeat center;
            background-size: 100%;
        }
        
        .mulit_line {
            height: 60px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            margin: 25px 0;
            padding-left: 20px;
        }
        
        .g-text_overflow {
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }
        
        .sitename {
            width: 90%;
            padding-top: 0;
            flex-shrink: 0;
        }

        .description {
            width: 90%;
            padding-top: 0;
            flex-shrink: 0;
            font-size: 14px;
            color: #949494;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            white-space: normal;
            /*text-indent: 2em;*/
        }
        .icon{
            position: absolute;
            right: 18px;
            bottom: 135px;
            width: 1.2em;
        }
    
    </style>
</head>
<body>
<div class="foot">
    <ul id="website_list">
        <volist name="list" id="info">
            <li onclick="go('{$info.link}')">
                <div class="leftImg"><img class="noShow" src="http://{:C('DOMAIN')}{$info.cover_id|get_cover='path'}" onload="imgLoad(this)"></div>
                <div class="mulit_line">
                    <p class="g-text_overflow sitename">{$info.title}</p>
                    <p class="g-text_overflow description">{$info.description}</p>
                </div>
                <img class="icon" src="__IMG__/transform.png"/>
            </li>
        </volist>
    </ul>
</div>

<script src="__JS__/jquery-1.10.2.min.js"></script>
<script src="__JS__/jweixin-1.0.0.js"></script>
<script src="__JS__/website_ctrl.js"></script>
<script>
    /**
     * 统一处理图片不变形
     */
    function imgLoad(e) {
        //获取当前图片父div,此div设置宽度高度样式
        var parentDiv = $(e).parent();
        var _dwidth = $(parentDiv).width();
        var _dheight = $(parentDiv).height();
        var _iwidth = $(e).width();
        var _iheight = $(e).height();

        //处理高图片,让高图片显示中间部分
        if (_dheight < _iheight) {
            var marginTop = (_iheight - _dheight) / 2 * -1;
            $(e).css('marginTop', marginTop + 'px');
            //处理宽图片，显示中间部分
        } else if (_dheight > _iheight) {
            var width = _iwidth / _iheight * _dheight / _dwidth * 100;
            $(e).css('width', width + '%');
            $(e).css('height', '100%');
            //这里必须重新获取图片width
            _iwidth = $(e).width();
            var marginLeft = (_iwidth - _dwidth) / 2 * -1;
            $(e).css('marginLeft', marginLeft + 'px');
        }
    }
</script>


</body>
</html>
